package cn.net.sinodata.system.domain.bo;

import cn.net.sinodata.system.domain.PmChooseOption;
import cn.net.sinodata.common.mybatis.core.domain.BaseEntity;
import cn.net.sinodata.common.core.validate.AddGroup;
import cn.net.sinodata.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;

/**
 * 选择项信息业务对象 pm_choose_option
 *
 * @author yinliangyun
 * @date 2025-10-30
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = PmChooseOption.class, reverseConvertGenerate = false)
public class PmChooseOptionBo extends BaseEntity {

    /**
     * 主键
     */
    @NotBlank(message = "主键不能为空", groups = { EditGroup.class })
    private String id;

    /**
     * 选择项编号
     */
    @NotBlank(message = "选择项编号不能为空", groups = { AddGroup.class, EditGroup.class })
    private String chooseOptionId;

    /**
     * 选择项名称
     */
    @NotBlank(message = "选择项名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String chooseOptionName;

    /**
     * 顺序号
     */
    private Long chooseOptionSort;

    /**
     * 选择组编号
     */
    @NotBlank(message = "选择组编号不能为空", groups = { AddGroup.class, EditGroup.class })
    private String chooseGroupId;

    /**
     * 选择组名称
     */
    @NotBlank(message = "选择组名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String chooseGroupName;

    /**
     * 备注
     */
    private String remarks;

}
